package com.example.nonggo.bean;

import java.io.Serializable;
import java.util.List;

public class Category implements Serializable {
    private String code;
    private String parentId;
    private String label;
    private boolean selected;
    private List<Category> children;

    // 构造函数、getter和setter方法
    public Category(String code, String parentId, String label, List<Category> children) {
        this.code = code;
        this.parentId = parentId;
        this.label = label;
        this.children = children;
    }

    // getter 和 setter 方法
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public List<Category> getChildren() {
        return children;
    }

    public void setChildren(List<Category> children) {
        this.children = children;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }
}
